Fix Windows build as fallout from revision 110786.
authorEli Zaretskii <eliz@gnu.org>
Sat, 3 Nov 2012 20:43:29 +0000 (22:43 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 3 Nov 2012 20:43:29 +0000 (22:43 +0200)
 nt/config.nt (PENDING_OUTPUT_N_BYTES): Define.

 lib/makefile.w32-in (GNULIBOBJS): Add $(BLD)/fpending.$(O) and
 $(BLD)/close-stream.$(O).
 ($(BLD)/close-stream.$(O)):
 ($(BLD)/fpending.$(O)): New dependencies.

ChangeLog
lib/makefile.w32-in
nt/ChangeLog
nt/config.nt

index 001fb6e9907d9b862fc98f826cf07060e64bcfbb..be4380d0a31549ed299d492a86a9152c8105eb9a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2012-11-03  Eli Zaretskii  <eliz@gnu.org>
 
+       * lib/makefile.w32-in (GNULIBOBJS): Add $(BLD)/fpending.$(O) and
+       $(BLD)/close-stream.$(O).
+       ($(BLD)/close-stream.$(O)):
+       ($(BLD)/fpending.$(O)): New dependencies.
+
        * config.bat: Copy lib/execinfo.in.h to lib/execinfo.in-h if needed.
 
 2012-11-03  Paul Eggert  <eggert@cs.ucla.edu>
index f0cea56f829cbb5fd87077bed8be42506e5b64d0..7e807278a40244057fe40d51dc058124841be585 100644 (file)
@@ -26,9 +26,11 @@ LIBS                 =
 GNULIBOBJS = $(BLD)/c-ctype.$(O) \
             $(BLD)/c-strcasecmp.$(O) \
             $(BLD)/c-strncasecmp.$(O) \
+            $(BLD)/close-stream.$(O) \
             $(BLD)/dtoastr.$(O) \
             $(BLD)/dtotimespec.$(O)  \
             $(BLD)/execinfo.$(O)  \
+            $(BLD)/fpending.$(O)  \
             $(BLD)/getopt.$(O)  \
             $(BLD)/getopt1.$(O) \
             $(BLD)/gettime.$(O) \
@@ -114,6 +116,13 @@ $(BLD)/c-strcasecmp.$(O) : \
        $(CONFIG_H) \
        $(C_CTYPE_H)
 
+$(BLD)/close-stream.$(O) : \
+       $(GNU_LIB)/close-stream.c \
+       $(GNU_LIB)/close-stream.h \
+       $(GNU_LIB)/fpending.h \
+       $(NT_INC)/stdbool.h \
+       $(CONFIG_H)
+
 $(BLD)/c-strncasecmp.$(O) : \
        $(GNU_LIB)/c-strncasecmp.c \
        $(GNU_LIB)/c-strcase.h \
@@ -135,6 +144,11 @@ $(BLD)/execinfo.$(O) : \
        $(GNU_LIB)/execinfo.h \
        $(CONFIG_H)
 
+$(BLD)/fpending.$(O) : \
+       $(GNU_LIB)/fpending.c \
+       $(GNU_LIB)/fpending.h \
+       $(CONFIG_H)
+
 $(BLD)/getopt.$(O) : \
        $(GNU_LIB)/getopt.c \
        $(GNU_LIB)/getopt.h \
index c224485046627a31bf2e7efe99f86212f3964871..968a691eecacdea60497fe3c15edc96983f872ae 100644 (file)
@@ -1,3 +1,7 @@
+2012-11-03  Eli Zaretskii  <eliz@gnu.org>
+
+       * config.nt (PENDING_OUTPUT_N_BYTES): Define.
+
 2012-11-01  Eli Zaretskii  <eliz@gnu.org>
 
        * inc/unistd.h (setpgid, getpgrp): Provide prototypes.  (Bug#12776)
index f690b126b772cb32d03fd83ec9c52e82f6f271bc..8f4cf8589108a6da6e823f97fa26e271d6a31e71 100644 (file)
@@ -1219,6 +1219,9 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 /* Number of chars of output in the buffer of a stdio stream. */
 #undef PENDING_OUTPUT_COUNT
 
+/* the number of pending output bytes on stream 'fp' */
+#define PENDING_OUTPUT_N_BYTES  (fp->_ptr - fp->_base)
+
 /* Define to empty to suppress deprecation warnings when building with
    --enable-gcc-warnings and with libpng versions before 1.5, which lack
    png_longjmp. */